<?php
$tm = $_GET['tm'];
$da = json_decode($tm,true);
$id=$_GET['id'];
$name=$_GET['name'];
$data=array('csm'=>"",'dfjs'=>"答题得分：",'df'=>null,'bq1' =>null,'bq2'=>null,'bq3'=>null,'bq4'=>null,'bq5'=>null,'ztpj'=>null,'bjtp'=>'https://lqb666.cn/ndzscs/zdy/zqqwdt.jpg');
$df = 0;
switch ($da[0]){
	case 'A': $df=$df+10 ;break;
}
switch ($da[1]){
	case 'B': $df=$df+10 ;break;
}
switch ($da[2]){
	case 'B': $df=$df+10 ;break;
}
switch ($da[3]){
	case 'A': $df=$df+10 ;break;
}
switch ($da[4]){
	case 'B': $df=$df+10 ;break;
}
switch ($da[5]){
	case 'C': $df=$df+10 ;break;
}
switch ($da[6]){
	case 'B': $df=$df+10 ;break;
}
switch ($da[7]){
	case 'A': $df=$df+10 ;break;
}
switch ($da[8]){
	case 'A': $df=$df+10 ;break;
}
switch ($da[9]){
	case 'A': $df=$df+10 ;break;
}

$data[ztpj]="你本次答题的得分为:".$df."分 该答题加入排行榜，快去Top榜搜索中秋，看看你的排名吧！";
$data[df]=$df.'分';
echo json_encode($data,JSON_UNESCAPED_UNICODE);
$conn->close();
?>